package com.cc.demo.schedule;

import com.cc.demo.service.TransactionEventMessageService;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class TransactionMessageScheduling {

    private final TransactionEventMessageService transactionEventMessageService;


    @Scheduled(cron = "0/10 * * * * *")
    public void batchSendMessage() {
        //TODO  考虑做取一部分数据来进行update
        //TODO  分布式锁
        //transactionEventMessageService.batchSendConfirmedMessage();
    }

}
